import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule }   from '@angular/forms';
import { HttpModule }    from '@angular/http';
import { RouterModule }   from '@angular/router';

// Imports for loading & configuring the in-memory web api

import { AppComponent } from './app.component';
import { HeroDetailComponent } from './component/hero-detail.component';
import { HerosComponent } from './component/heros/heros.component';
import { DashboardComponent } from './component/dashboard/dashboard.component';
import {AppRoutingModule} from "./app-routing/app-routing.module";
import {HeroService} from "./service/hero.service.service";
//import {InMemoryWebApiModule} from "angular-in-memory-web-api/in-memory-web-api.module";

@NgModule({
  declarations: [
    AppComponent,
    HeroDetailComponent,
    HerosComponent,
    DashboardComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    AppRoutingModule,
    //InMemoryWebApiModule
  ],
  providers: [HeroService ],
  bootstrap: [AppComponent]
})
export class AppModule {
}
